package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the DOCTOR_TITLE database table.
 * 
 */
@Entity
@Table(name="DOCTOR_TITLE")
@NamedQuery(name="DoctorTitle.findAll", query="SELECT d FROM DoctorTitle d")
public class DoctorTitle implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="DOCTOR_TITLE_ID")
	private long doctorTitleId;

	private String name;

	//bi-directional many-to-many association to Staff
	@ManyToMany(mappedBy="doctorTitles")
	private List<Staff> staffs;

	public DoctorTitle() {
	}

	public long getDoctorTitleId() {
		return this.doctorTitleId;
	}

	public void setDoctorTitleId(long doctorTitleId) {
		this.doctorTitleId = doctorTitleId;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<Staff> getStaffs() {
		return this.staffs;
	}

	public void setStaffs(List<Staff> staffs) {
		this.staffs = staffs;
	}

}